<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://displaytag.sf.net/el" prefix="display-el" %>
<%@ taglib uri="ford-arg/tags" prefix="ft" %>

<script language="javascript">
function cleanFields(){
	document.getElementById('userID').value="";
	document.getElementById('password').value="";
}

function doLogin(){
		document.LoginForm.action = "DoLogin.do";
		document.LoginForm.submit();
}
</script>
	
<table>
	<tr>
		<td colspan="2"><h2><bean:message key="login.title"/></h2></td>
	</tr>
</table>
<br/>
<html:form action="/DoLogin">
	<table class="no_border" style="width:800px">
		<tr>
			<td colspan="100%">
				<table>
					<tr>
						<td class="text_blue_bold align_left">
							<bean:message key="login.lable.user" />
						</td>
						<td class="align_left">
							<html:text property="userID" styleId="userID"/>
						</td>
					</tr>
					<tr>
						<td class="text_blue_bold align_left">
							<bean:message key="login.lable.password" />
						</td>
						<td class="align_left">
							<html:text property="password" maxlength="8" styleId="password"/>&nbsp;
							<html:button property="find" onclick="cleanFields();" styleClass="button"><bean:message key="label.clean" /></html:button>
							<html:button property="find" onclick="doLogin();" styleClass="button"><bean:message key="login.label.enter" /></html:button>
						</td>
					</tr>
				</table>
			</td>
		</tr>
	</table>
</html:form>